import { NgModule } from '@angular/core';

import { CommonModule } from '@angular/common';
import { JpaRoutingModule } from './jpa-routing.module';

import { JpaComponent } from './jpa.component';

import { registerLocaleData } from '@angular/common';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { ScrollingModule } from '@angular/cdk/scrolling';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientJsonpModule, HttpClientModule } from '@angular/common/http';
import en from '@angular/common/locales/en';

import { IconDefinition } from '@ant-design/icons-angular';
import * as AllIcons from '@ant-design/icons-angular/icons';

import { DemoNgZorroAntdModule } from '../../ng-zorro-antd.module';
import { ShowCodeComponent } from '../show-code/show-code.component';


registerLocaleData(en);
const antDesignIcons = AllIcons as {
  [key: string]: IconDefinition;
};
const icons: IconDefinition[] = Object.keys(antDesignIcons).map(key => antDesignIcons[key])


@NgModule({
  imports: [
    CommonModule,
    // BrowserModule,
    FormsModule,
    HttpClientModule,
    HttpClientJsonpModule,
    ReactiveFormsModule,
    DemoNgZorroAntdModule,
    // BrowserAnimationsModule,
    ScrollingModule,
    DragDropModule,
    JpaRoutingModule,
    
  ],
  bootstrap: [JpaComponent],
  declarations: [JpaComponent],
  exports: [JpaComponent],
  // providers: [ { provide: NZ_I18N, useValue: en_US }, { provide: NZ_ICONS, useValue: icons } ]
})
export class JpaModule { }
